package com.it.zhangjun.design.pattern.visitor;

/**
 * @className: Apple
 * @description: 苹果
 * @author: z00018123
 * @date: 2021/4/30
 **/
public class Apple implements FruitPackage {

    @Override
    public void accept(Visitor visitor) {
        visitor.visitApple(this);
    }

    @Override
    public double getPrice() {
        return 30;
    }
}
